home *** CD-ROM | disk | FTP | other *** search
- raw 317:* {
- if (%rawcode.317 == off) { unset %rawcode.317 | return }
- if ($tokmatch(%whois,$2,44)) {
- if ($form(whois,idle)) whecho $readini %formats whois idle
- else whecho $sc(|) $hc(idle) $sc(:) $duration($3) (signed on $asctime($4) $+ )
- halt
- }
- elseif ($tokmatch(%cwhois,$2,44)) {
- if ($form(cwhois,idle)) msg $active $readini %formats cwhois idle
- else msg $active $vl idle : $duration($3) (signed on $asctime($4) $+ )
- halt
- }
- }
- raw 318:* {
- if (%rawcode.318 == off) { unset %rawcode.318 | return }
- if ($findtok(%whois,$2,1,44)) {
- if ($form(whois,bottom)) whecho $readini %formats whois bottom
- else whecho $lfix(16,»»»»»»»»»»»»»»») $+ $hc(»»»»»»»»»»»»»»») $+ $sc(»»»»»»»»»»»»»»»)
- set %whois $remtok(%whois,$2,1,44)
- halt
- }
- elseif ($findtok(%cwhois,$2,1,44)) {
- if ($form(cwhois,bottom)) msg $active $readini %formats cwhois bottom
- else msg $active $lfix(46,»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»)
- set %cwhois $remtok(%cwhois,$2,1,44)
- halt
- }
- elseif (%nwhois) {
- set %nwhois $remtok(%nwhois,$2,1,44)
- halt
- }
- }
- raw 319:* {
- if (%rawcode.319 == off) { unset %rawcode.319 | return }
- if ($tokmatch(%whois,$2,44)) {
- if ($form(whois,chan)) whecho $readini %formats whois chan
- else whecho $sc(|) $hc(chan) $sc(:) $3-
- halt
- }
- elseif ($tokmatch(%cwhois,$2,44)) {
- if ($form(cwhois,chan)) msg $active $readini %formats cwhois chan
- else msg $active $vl chan : $3-
- halt
- }
- }
- raw 324:* {
- if (%rawcode.324 == off) { unset %rawcode.324 | return }
- if ((%jstats == off) && (%joinch == on) && (%jointtl == on) && ($me ison $2)) {
- if ($2 == %idlechan) {
- mode $2 +mnstil 1
- window -h $2
- }
- if ($3- == +) set %cmde none
- else set %cmde $3-
- if ($form(joinecho,totals)) $readini %formats joinecho totals
- else echo $2 %h [o: $hc($opnick($2,0)) $+ ][v: $hc($vnick($2,0)) $+ ][n: $hc($rnick($2,0)) $+ ][t: $hc($nick($2,0)) $+ ][m: $hc(%cmde) $+ ]]
- unset %cmde %jointime
- }
- }
- raw 332:* {
- if (%rawcode.332 == off) { unset %rawcode.332 | return }
- if ((%jstats == off) && (%joinch == on) && (%joinsyn == on) && (%jointime)) {
- if ($form(joinecho,synched)) $readini %formats joinecho synched
- else echo $2 %h Join synched in $hc($rrpt($sub($ticks,%jointime))) seconds.
- }
- if ((%jstats == off) && (%joinch == on) && (%jointpc == on)) {
- if ($form(joinecho,topic1)) {
- set %i 0
- :start1
- inc %i
- set %j topic $+ %i
- if ($form(joinecho,%j)) {
- $readini %formats joinecho %j
- goto start1
- }
- unset %wrap.*
- halt
- }
- echo $2 $lfix(3,.) $+ $str(-,63) $+ .
- echo $2 $lfix(3,$vl) $sc(Topic) $+ : $fix(54,$wrap(1,54,$strip($3-))) $vl
- set %wrap.topic %wrap.pos
- if (%wrap.topic < $len($strip($3-))) {
- :start
- echo $2 $center(5,$vl) $fix(59,$wrap($pls(%wrap.topic,1),58,$strip($3-))) $vl
- set %wrap.topic $pls(%wrap.topic,%wrap.pos)
- if (%wrap.topic < $len($strip($3-))) goto start
- }
- if ((%joinnms != on) && (%jointst != on)) echo $2 $lfix(3,') $+ $str(-,63) $+ '
- unset %wrap.*
- halt
- }
- }
- raw 333:* {
- if (%rawcode.333 == off) { unset %rawcode.333 | return }
- if ((%jstats == off) && (%joinch == on) && (%jointst == on)) {
- if ($form(joinecho,setby1)) {
- set %i 0
- :start1
- inc %i
- set %j setby $+ %i
- if ($form(joinecho,%j)) {
- $readini %formats joinecho %j
- goto start1
- }
- unset %jointime
- halt
- }
- if (%jointpc != on) echo $2 $lfix(3,.) $+ $str(-,63) $+ .
- echo $2 $lfix(3,$vl) $sc(SetBy) $+ : $hc($3) $lfix($sub(53,$len($3)),$asc-time($4)) $vl
- echo $2 $lfix(3,') $+ $str(-,63) $+ '
- unset %jointime
- halt
- }
- }
- raw 341:* { halt }
- raw 352:* {
- if (%rawcode.352 == off) { unset %rawcode.352 | return }
- if (%cstats == on) {
- if (* isin $7) inc %niops
- if (G isin $7) inc %naway
- set %cladd $4
- inc %cnum
- inc %chops $8
- set %hop1 $div(%chops,%cnum)
- set %hop2 $trncte(%chops,%cnum)
- set %hop3 $mpy(%hop2,100)
- set %hop4 $div(%hop3,%cnum)
- if ($len(%hop4) == 1) set %hop4 %hop4 $+ 0
- halt
- }
- elseif (%spoofchk) {
- if ($6 == %spoofchk) {
- set %spoofchk.host $remove($3,~) $+ @ $+ $4
- set %spoofchk.nick $6
- unset %spoofchk
- .quote stats L $6
- halt
- }
- }
- elseif (%lircops == on) {
- if (* isin $7) {
- inc %cn
- if (%cn == 1) {
- write -c $tp(ircop.txt)
- write $tp(ircop.txt) exit $chr(123) set $chr(37) $+ icloc $chr(36) $+ swlc(@IrcOps) $vl window -c @IrcOps $chr(125)
- write $tp(ircop.txt) -
- window -a @IrcOps %icloc $tp(ircop.txt) FixedSys 9
- aline @IrcOps . $+ $str(-,45) $+ .
- aline @IrcOps $vl IRC Operators on $fix(27,$hc($2)) $+ $vl
- aline @IrcOps $vl $+ $str(-,45) $+ $vl
- aline @IrcOps $fix(5,$vl) $fix(13,Nick) $fix(25,Server) $vl
- }
- aline @IrcOps $vl $lfix(2,%cn) $+ . $fix(10,$hc($6)) $fix(28,$5) $vl
- write $tp(ircop.txt) $6
- write $tp(ircop.txt) .who $chr(123) who $6 $chr(125)
- write $tp(ircop.txt) .ping $chr(123) ctcp $6 ping $chr(125)
- write $tp(ircop.txt) .whois $chr(123) whois $6 $chr(125)
- write $tp(ircop.txt) .finger $chr(123) finger $6 $chr(125)
- write $tp(ircop.txt) .version $chr(123) ctcp $6 version $chr(125)
- }
- halt
- }
- elseif ($findtok(%joinedchans,$2,1,44)) halt
- elseif (%whochan == on) {
- if ($form(who)) {
- iiecho $readini %formats who line1
- if ($form(who,line2)) iiecho $readini %formats who line2
- if ($form(who,line3)) iiecho $readini %formats who line3
- if ($form(who,line4)) iiecho $readini %formats who line4
- }
- else {
- iiecho $vl $fix(13,$hc($6)) ( $+ $3 $+ $chr(64) $+ $4 $+ )
- iiecho $vl $str(-,9) is $sc($ca($7)) on $hc($5) ( $+ $sc($8) hops)
- }
- halt
- }
- }
- raw 351:* {
- if (%vercheck == on) {
- if ($server($server).group) {
- if (hybrid-6 isin $1-) netset $server($server).group 4 hybrid6
- elseif (TS3 isin $1-) netset $server($server).group 4
- elseif ($server($server).group == EFnet) netset $server($server).group 4
- else netset $server($server).group 3
- }
- elseif ($network) {
- if (hybrid-6 isin $1-) netset $network 4 hybrid6
- elseif (TS3 isin $1-) netset $network 4
- elseif ($network == EFnet) netset $network 4
- else netset $network 3
- }
- else {
- if (hybrid-6 isin $1-) netset EFnet 4 hybrid6
- elseif (TS3 isin $1-) netset EFnet 4
- else netset unknown 3
- }
- unset %vercheck
- halt
- }
- }
- raw 353:* {
- if (%rawcode.353 == off) { unset %rawcode.353 | return }
- set %nameschannel $3
- if ((%colnick == on) && ($remove($4-,@) == $me)) cline -r %cn17 $3 1
- if ((%jstats == off) && (%joinch == on) && (%joinnms == on)) {
- nline $4-
- halt
- }
- if (%jstats == on) {
- inc %jstat.num
- set %jstat.num2 $pls(1,$count($4-,$chr(32)))
- set %nameschannel $3
- if ($me ison %nameschannel) set %n.cmd echo %nameschannel
- else set %n.cmd iiecho
- if ($form(nicklist,namestop1)) %n.cmd $readini %formats nicklist namestop1
- else %n.cmd $lfix(3,.) $+ $str(-,63) $+ .
- if (%jstat.num == 1) {
- if ($form(nicklist,namestop2a)) %n.cmd $readini %formats nicklist namestop2a
- else %n.cmd $lfix(3,$vl) Names [[ $+ $hc($3) $+ : $+ $sc($fix(2,%jstat.num2)) $+ ]] $lfix($sub(51,$len($3)),$vl)
- }
- else {
- if ($form(nicklist,namestop2b)) %n.cmd $readini %formats nicklist namestop2b
- else %n.cmd $lfix(3,$vl) Next [[ $+ $hc($3) $+ : $+ $sc($fix(2,%jstat.num2)) $+ ]] $lfix($sub(52,$len($3)),$vl)
- }
- nline $4-
- halt
- }
- }
- raw 364:* {
- if (%rawcode.364 == off) { unset %rawcode.364 | halt }
- if (%linksr == on) { write $tp(temp.txt) $2 | halt }
- if (%linkl == on) { write $nd(svr) $2 | halt }
- }
- raw 365:* {
- if (%rawcode.365 == off) { unset %rawcode.365 | return }
- if (%linksr == on) {
- set %ntmp 0
- set %i 0
- :start
- inc %i
- if (%i > $lines($nd(svr))) goto end
- set %stmp $read -nl $+ %i $nd(svr)
- set %stmp2 $read -s $+ %stmp $tp(temp.txt)
- if (%stmp2 == $null) {
- inc %ntmp
- if (%ntmp == 1) {
- window -ae @LinkáLooker %lloc /server $tp(ll.txt) FixedSys 9
- write -c $tp(ll.txt)
- write $tp(ll.txt) exit $chr(123) set $chr(37) $+ lloc $chr(36) $+ swlc(@LinkáLooker) $vl window -c @LinkáLooker $chr(125)
- write $tp(ll.txt) -
- aline @LinkáLooker . $+ $str(-,45) $+ .
- aline @LinkáLooker $vl Split servers from $fix(24,$hc($server)) $vl
- aline @LinkáLooker $vl $+ $str(-,45) $+ $vl
- }
- aline @LinkáLooker $vl $str(á,5) $lfix(2,%ntmp) $+ . $fix(33,$sc(%stmp)) $vl
- write $tp(ll.txt) $replace(%stmp,*,irc)
- write $tp(ll.txt) .join $chr(123) server $replace(%stmp,*,irc) $chr(125)
- goto start
- }
- goto start
- :end
- if (%ntmp == 0) iecho No split servers were found.
- else {
- titlebar @LinkáLooker - %ntmp split servers
- aline @LinkáLooker ' $+ $str(-,45) $+ '
- }
- unset %linksr %stmp* %ntmp
- halt
- }
- if (%linkl == on) {
- iecho List of $hc(%irc.network) servers has been made. ( $+ $hc($lines($nd(svr))) servers)
- unset %linkl
- halt
- }
- }
- raw 366:* {
- if (%rawcode.366 == off) { unset %rawcode.366 | return }
- if (%jstats == on) {
- if (%colnick == on) colnick %nameschannel
- unset %jstat.num* %nameschannel
- set %jstats off
- halt
- }
- if ((%jstats == off) && (%joinch == on) && (%joinnms == on)) halt
- }
- raw 367:* {
- if (%rawcode.367 == off) { unset %rawcode.367 | return }
- if (%unban == on) {
- if ($3 iswm %ubadd) mode $2 -b $3
- halt
- }
- elseif (%clearbans == on) {
- set %bans %bans $3
- halt
- }
- elseif (%unban.1 == on) {
- if (%u.mask iswm $3) set %bans %bans $3
- halt
- }
- elseif (%tban == on) {
- if ($sub($ctime,$5) >= %tban.t) set %bans %bans $3
- halt
- }
- elseif (%showbans == on) {
- inc %bansno
- write $tp(rban.txt) $3
- if (%bansno == 1) {
- echo $2 . $+ $str(-,15) Bans on ( $+ $hc($2) $+ ) $str(-,15)
- echo $2 $fix(4,$vl) $fix(10,Nick) Banmask
- }
- if ($len($gettok($4,1,33)) > 9) {
- echo $2 $vl %bansno $+ . $hc($gettok($4,1,33))
- echo $2 $fix(10,$vl) '--> $sc($3)
- halt
- }
- else {
- echo $2 $vl %bansno $+ . $fix(10,$hc($gettok($4,1,33))) $sc($3)
- halt
- }
- }
- elseif (%rtban != $null) {
- inc %bansno
- if (%bansno == %rtban) mode $2 -b $3
- halt
- }
- }
- raw 368:* {
- if (%rawcode.368 == off) { unset %rawcode.368 | return }
- if (%unban == on) {
- unset %unban
- qnotice %ubnick All bans on you from $b($2) have been removed.
- if (%ubnick !ison $2) .quote invite %ubnick $2
- halt
- }
- elseif (%showbans == on) {
- if (%bansno == 0) echo $2 %h No Bans were found on $hc($2) $+ .
- else {
- echo $2 ' $+ $str(-,$pls($len($2),42))
- if ($me isop $2) echo $2 %h To remove a ban type $hc(/rban <ban #>) $+ .
- }
- unset %showbans %bansno
- halt
- }
- elseif (%rtban != $null) unset %rtban %bansno
- elseif ((%clearbans == on) || (%unban.1 == on) || (%tban == on)) {
- if (%bans != $null) mmode $2 - b %bans
- unset %bans %clearbans %unban.1 %tban*
- halt
- }
- }
- raw 369:* {
- if (%rawcode.369 == off) { unset %rawcode.369 | return }
- if ($findtok(%whowas,$2,1,44)) {
- if ($form(whowas,bottom)) whecho $readini %formats whowas bottom
- else whecho $lfix(16,»»»»»»»»»»»»»»») $+ $hc(»»»»»»»»»»»»»»») $+ $sc(»»»»»»»»»»»»»»»)
- set %whowas $remtok(%whowas,$2,1,44)
- halt
- }
- if ($findtok(%cwhowas,$2,1,44)) {
- if ($form(cwhowas,bottom)) msg $active $readini %formats cwhowas bottom
- else msg $active $lfix(46,»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»)
- set %cwhowas $remtok(%cwhowas,$2,1,44)
- halt
- }
- if ($findtok(%nwhowas,$2,1,44)) {
- set %nwhowas $remtok(%nwhowas,$2,1,44)
- halt
- }
- }
- raw 375:* { halt }
- raw 376:* { halt }
- raw 391:* {
- if (%slagtmp == on) {
- set %pt $rrpt($sub($ticks,%slag))
- if (%pt <= 0) {
- if ($form(ctcpreplies,ping0)) iecho $readini %formats ctcpreplies ping0
- else iecho Server $hc(PING) $sc(reply) from $u($hc($nick)) $+ : 0 sec
- }
- elseif ($form(ctcpreplies,ping)) iecho $readini %formats ctcpreplies ping
- else iecho Server $hc(PING) $sc(reply) from $u($hc($nick)) $+ : $iduration(%pt)
- unset %slag %pt %slagtmp
- halt
- }
- }
- raw 401:* {
- if (%rawcode.401 == off) { unset %rawcode.401 | return }
- if ($2 == $null) halt
- elseif ($2 == %dccnick) {
- set %dccrelay off
- set %f12cmd %dccrinfo
- iecho DCC relay unable to process send.
- iecho To accept any queued sends press $hc(F12) $+ .
- unset %dccnick %dccrinfo
- halt
- }
- elseif ($tokmatch(%whois,$2,44)) {
- if ($form(whois,error)) iecho $readini %formats whois error
- else iecho No such nickname $hc($2) on IRC.
- set %nwhois $addtok(%nwhois,$gettok(%whois,$tokmatch(%whois,$2,44),44),44)
- set %whois $deltok(%whois,$tokmatch(%whois,$2,44),44)
- halt
- }
- elseif ($tokmatch(%cwhois,$2,44)) {
- if ($form(cwhois,error)) iecho $readini %formats cwhois error
- else iecho No such nickname $hc($2) on IRC.
- set %nwhois $addtok(%nwhois,$gettok(%cwhois,$tokmatch(%cwhois,$2,44),44),44)
- set %cwhois $deltok(%cwhois,$tokmatch(%cwhois,$2,44),44)
- halt
- }
- else {
- if ($2 != %lastnick) {
- if ($form(errors,noton)) iecho $readini %formats errors noton
- else iecho No such nickname $hc($2) on IRC.
- }
- set %lastnick $2
- halt
- }
- }
- raw 402:* {
- if (%rawcode.402 == off) { unset %rawcode.402 | return }
- elseif ($2 == $null) halt
- elseif ($2 == %dccnick) {
- set %dccrelay off
- set %f12cmd %dccrinfo
- iecho DCC relay unable to process send.
- iecho To accept any queued sends press $hc(F12) $+ .
- unset %dccnick %dccrinfo
- halt
- }
- elseif ($tokmatch(%whois,$2,44)) {
- if ($form(whois,error)) iecho $readini %formats whois error
- else iecho No such server $hc($2) on IRC.
- set %nwhois $addtok(%nwhois,$gettok(%whois,$tokmatch(%whois,$2,44),44),44)
- set %whois $deltok(%whois,$tokmatch(%whois,$2,44),44)
- halt
- }
- elseif ($tokmatch(%cwhois,$2,44)) {
- if ($form(cwhois,error)) iecho $readini %formats cwhois error
- else iecho No such server $hc($2) on IRC.
- set %nwhois $addtok(%nwhois,$gettok(%cwhois,$tokmatch(%cwhois,$2,44),44),44)
- set %cwhois $deltok(%cwhois,$tokmatch(%cwhois,$2,44),44)
- halt
- }
- else {
- if ($2 != %lastnick) {
- if ($form(errors,noton)) iecho $readini %formats errors noton
- else iecho No such server $hc($2) on IRC.
- }
- set %lastnick $2
- halt
- }
- }
- raw 404:* {
- if (%rawcode.404 == off) { unset %rawcode.404 | return }
- if ($2 != %lastchan) {
- if ($form(errors,nochan)) iecho $readini %formats errors nochan
- else iecho Cannot send to channel ( $+ $hc($2) $+ )
- }
- set %lastchan $2
- halt
- }
- raw 405:* {
- if (%rawcode.405 == off) { unset %rawcode.405 | return }
- if ($form(errors,toomanychans)) iecho $readini %formats errors toomanychans
- else iecho Server says you are on too many channels.
- halt
- }
- raw 406:* {
- if (%rawcode.406 == off) { unset %rawcode.406 | return }
- if ($findtok(%whowas,$2,1,44)) {
- if ($form(whowas,error)) iecho $readini %formats whowas error
- else iecho Could not locate $hc(WHOWAS) information for $hc($2) $+ .
- set %whowas $remtok(%whowas,$2,1,44)
- set %nwhowas $addtok(%nwhowas,$2,44)
- halt
- }
- if ($findtok(%cwhowas,$2,1,44)) {
- if ($form(whowas,error)) iecho $readini %formats whowas error
- else iecho Could not locate $hc(WHOWAS) information for $hc($2) $+ .
- set %cwhowas $remtok(%cwhowas,$2,1,44)
- set %nwhowas $addtok(%nwhowas,$2,44)
- halt
- }
- }
- raw 421:* {
- if (%rawcode.421 == off) { unset %rawcode.421 | return }
- if ($form(errors,badcmd)) iecho $readini %formats errors badcmd
- else iecho $hc($2) is not a known command.
- halt
- }
- raw 432:* {
- if (%rawcode.432 == off) { unset %rawcode.432 | return }
- if ($form(errors,badnick)) iecho $readini %formats errors badnick
- else iecho Erroneous nickname, please try again.
- halt
- }
- raw 433:* {
- if (%rawcode.433 == off) { unset %rawcode.433 | return }
- if ($form(errors,nickinuse)) iecho $readini %formats errors nickinuse
- else iecho Nickname $hc($2) is already in use.
- whois $2
- halt
- }
- raw 436:* {
- if (%rawcode.436 == off) { unset %rawcode.436 | return }
- if ($form(errors,collision)) iecho $readini %formats errors collision
- else iecho Nickname Collision!!
- nick $me $+ $rand(a,z)
- halt
- }
- raw 465:* {
- if (%rawcode.465 == off) { unset %rawcode.465 | return }
- iecho You have been K-lined from $server $+ , try another
- halt
- }
- raw 471:* {
- if (%rawcode.471 == off) { unset %rawcode.471 | return }
- if ($form(joinerrors,full)) iecho $readini %formats joinerrors full
- else iecho Cannot join channel $hc($2) (Its full)
- halt
- }
- raw 473:* {
- if (%rawcode.473 == off) { unset %rawcode.473 | return }
- if ($form(joinerrors,invite)) iecho $readini %formats joinerrors invite
- else iecho Cannot join channel $hc($2) (Invite only)
- halt
- }
- raw 474:* {
- if (%rawcode.474 == off) { unset %rawcode.474 | return }
- if ($form(joinerrors,banned)) iecho $readini %formats joinerrors banned
- else iecho Cannot join channel $hc($2) (Banned)
- halt
- }
- raw 475:* {
- if (%rawcode.475 == off) { unset %rawcode.475 | return }
- if ($form(joinerrors,key)) iecho $readini %formats joinerrors key
- else iecho Cannot join channel $hc($2) (Requires the correct key)
- halt
- }
- raw 481:* {
- if (%rawcode.481 == off) { unset %rawcode.481 | return }
- if (%spoofchk.nick) {
- iecho Could not check %spoofchk.nick for a spoofed address. (you are not an IRC operator)
- unset %spoofchk*
- halt
- }
- }
- raw 482:* {
- if (%rawcode.482 == off) { unset %rawcode.482 | return }
- if ($2 != %lastchan1) iecho You are not a channel operator ( $+ $hc($2) $+ )
- set %lastchan1 $2
- halt
- }
-